import request from '@/utils/request'

// 百度网盘授权
export function baiduToken(token) {
    return request({
        url: '/my/apisq',
        method: 'post',
        data: {
            bd_token: token
        }
    })
}

// 移除授权
export function removeBaiduToken() {
    return request({
        url: '/my/delsq',
        method: "post"
    })
}


// 查询当前文件列表
export function getCollect(getName) {
    return request({
        url: "/my/getCollect",
        method: "get",
        params: {
            getName
        }
    })
}

// 文件下载
export function download(fsids) {
    return request({
        url: '/my/download',
        method: 'post',
        data: fsids
    })
}